package com.iyoyi.ctencent;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import androidx.annotation.Nullable;

import com.tencent.mm.ui.MMFragmentActivity;

public class ChildActivity extends MMFragmentActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_child);
        initNavigationSwipeBack();
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.e("TAG", "Child on resume");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.e("TAG", "Child on pause");
    }

    public void startChild(View v) {
        startActivity(new Intent(this, ChildActivity.class));
    }
}
